//
//  XSelectWalletListView.h
//  Bees
//
//  Created by Xiaohan on 2018/12/22.
//  Copyright © 2018 xiaohan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SelectedListModel.h"
#import "XHBaseTableCell.h"

#define XWalletListTableViewCellHeight AdaptedWidth(50.0f)

@interface XWalletListTableViewCell : XHBaseTableCell
@property (nonatomic,strong) UIImageView*iconImgV;
@property (nonatomic,strong) UILabel*nameLab;
@property (nonatomic,strong) UILabel*subLab;
@property (nonatomic,strong) UIImageView*arrowImgV;
@end

NS_ASSUME_NONNULL_BEGIN

typedef void (^SelectedBlock)(Wallet *);
typedef void (^CancelBlock)(void);
@interface XSelectWalletListView : UITableView
@property (nonatomic , strong ) NSArray<Wallet *>* array;
@property (nonatomic , strong ) Wallet * selectWallet;
/**
 已选中Block
 */
@property (nonatomic , copy ) SelectedBlock selectedBlock;
@property (nonatomic , copy ) CancelBlock cancelBlock;
@property (nonatomic , copy ) CancelBlock importBlock;


+ (void)showList:(NSArray<Wallet *>*)listArr selectWallet:(Wallet*)selectWallet selectAction:(SelectedBlock)selectAction cancelAction:(CancelBlock)cancelAction importAction:(CancelBlock)importAction;

@end

NS_ASSUME_NONNULL_END
